import 'package:fish_redux/fish_redux.dart';

enum SetPasswordBySmsAction {
  sendSms,
  updateRemain,
  updateLoading,
  updateSmsId,
  setPassword
}

class SetPasswordBySmsActionCreator {
  static Action onSendSmsAction() {
    return const Action(SetPasswordBySmsAction.sendSms);
  }

  static Action onSetRemainAction(int seconds) {
    return Action(SetPasswordBySmsAction.updateRemain, payload: seconds);
  }

  static Action onSetSmsId(String smsId) {
    return Action(SetPasswordBySmsAction.updateSmsId, payload: smsId);
  }

  static Action onLoadingAction(bool isLoading) {
    return Action(SetPasswordBySmsAction.updateLoading, payload: isLoading);
  }

  static Action onSetPasswordAction() {
    return const Action(SetPasswordBySmsAction.setPassword);
  }
}
